NOTE: This Technical Q&A has been
retired. Please see the Technical Q&As
page for current documentation.![]() ![]() |
The AlignWindow API call is also available under QuickTime for Windows 2.0. This call moves a specified window to the nearest optimal alignment position when the window is used for displaying QuickTime movies. VOID QTAPI AlignWindow (WindowPtr wp, Boolean front, LPRECT aligmentRect, AlignmentProcRecordPtr alignmentProc); wp Points to the window to be aligned. front Specifies the front most window. If the front parameter is true and the window specified in the wp parameter isn't the active window, AlignWindow makes it the active window. alignmentRect Contains a pointer to a rectangle in window coordinates that allows you to align the window to a rectangle within the window. Set this parameter to nil to align using the bounds of the window. alignmentProc Points to a function that allows you to provide your own alignment behavior. Set this parameter to nil to use the standard behavior. Example of use: GetMovieBox (mMovie,&rcMovie); AlignWindow ((WindowPtr)hwndMovie, FALSE, &rcMovie,NULL); [May 01 1995] |
Developer Documentation | Technical Notes | Development Kits | Sample Code |